package com.game.majiang.algorithm.doudizhu;

import java.util.ArrayList;
import java.util.Random;

public class DoudizhuAIRandomcardsServer {
	public ArrayList<DoudizhuAIRandomcardsAll> cardsserver = null;
	public ArrayList<DoudizhuAIRandomcardsAll> cardsserverhuapai = null;
	public DoudizhuAIRandomcardsAll getrandomaivo(int huapai)
	{
		Random tt = new Random();
		if (huapai == 0) {
			return cardsserver.get(tt.nextInt(cardsserver.size()));
		} else {
			return cardsserverhuapai.get(tt.nextInt(cardsserverhuapai.size()));
		}
		
		
	}
}
